<%--
  Created by IntelliJ IDEA.
  User: 郝龙飞
  Date: 2021/10/25
  Time: 19:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%--头部文件，可以使用静态包含引入--%>

<%
    String basePath = request.getScheme()
            + "://" + request.getServerName()
            + ":" + request.getServerPort()
            + request.getContextPath()
            + "/";
    pageContext.setAttribute("basePath",basePath);
%>
<base href="<%=pageContext.getAttribute("basePath")%>">